package com.zy.dp.proxy.example3;

public class Client
{
	public static void main(String[] args)
	{

		Order order = new Order("Design pattern", 70, "Lucy");
		DynamicProxy dynamicProxy = new DynamicProxy();
		OrderApi orderApi = dynamicProxy.getProxyInterface(order);

		orderApi.setOrderNum(123, "Lily");
		System.out.println(orderApi);

		orderApi.setOrderNum(80, "Lucy");
		System.out.println(orderApi);

	}
}
